HD = STOCK_DATA(CODE,PERIOD,"HIGH") - REF(STOCK_DATA(CODE,PERIOD,"HIGH"),1.0)
EXPORT("MDI", DMM * 100.0 / TR, "coloryellow")
p1 = MAKE_INPUT(14.0, 1.0, 999.0, 1.0)
p2 = MAKE_INPUT(9.0, 1.0, 999.0, 1.0)
A = (STOCK_DATA(CODE,PERIOD,"H") + STOCK_DATA(CODE,PERIOD,"L")) / 2.0
B = (REF(STOCK_DATA(CODE,PERIOD,"H"),1.0) + REF(STOCK_DATA(CODE,PERIOD,"L"),1.0)) / 2.0
MID = A - B
BRO = STOCK_DATA(CODE,PERIOD,"VOL") / (STOCK_DATA(CODE,PERIOD,"H") - STOCK_DATA(CODE,PERIOD,"L"))
EXPORT("EMV", MA(MID / BRO,p1) * EMA(V,250.0), "")
EXPORT("EMVA", MA(EMV,p2), "")
